package pe.com.bbva.ge.domain.solicitud;

// Generated 02/04/2014 12:12:20 PM by Hibernate Tools 3.4.0.CR1

import java.math.BigInteger;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import javax.persistence.TableGenerator;

import pe.com.bbva.ge.domain.base.Auditoria;
import pe.com.bbva.ge.domain.configuracion.Valor;

/**
 * Anomalia generated by hbm2java
 */
@Entity
@Table(name = "SOL_ANOMALIA")
public class Anomalia extends Auditoria {
	private static final long serialVersionUID = 1L;
	
	@Id
	@Column(unique = true, nullable = false, precision = 19)
	@GeneratedValue(strategy = GenerationType.TABLE, generator = "SEQ_ANOMALIA")
	@TableGenerator(name = "SEQ_ANOMALIA", 
	table = Anomalia.SEQ_TABLA, 
	pkColumnName = Anomalia.SEQ_TABLA_PK, 
	initialValue = 1, 
	valueColumnName = Anomalia.SEQ_TABLA_COLUMN, 
	pkColumnValue = "pe.com.bbva.ge.domain.solicitud.Anomalia", 
	allocationSize = 1)	
	private long id;
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	
	//

	private BigInteger cantidad;

	private String numero;

	private String observacion;

	//uni-directional many-to-one association to Anomalia
	@ManyToOne
	@JoinColumn(name="TIPO")
	private Valor tipo;

	//bi-directional one-to-one association to DetalleRemito
	@OneToOne
	@JoinColumn(name="DETALLE_REMITO")
	private DetalleRemito detalleRemito;

	public BigInteger getCantidad() {
		return this.cantidad;
	}

	public void setCantidad(BigInteger cantidad) {
		this.cantidad = cantidad;
	}

	public String getNumero() {
		return this.numero;
	}

	public void setNumero(String numero) {
		this.numero = numero;
	}

	public String getObservacion() {
		return this.observacion;
	}

	public void setObservacion(String observacion) {
		this.observacion = observacion;
	}

	public Valor getTipo() {
		return this.tipo;
	}

	public void setTipo(Valor tipo) {
		this.tipo = tipo;
	}

	public DetalleRemito getDetalleRemito() {
		return this.detalleRemito;
	}

	public void setDetalleRemito(DetalleRemito detalleRemito) {
		this.detalleRemito = detalleRemito;
	}
	
}
